package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-07-16 14:26
 */
public class Test03 {
    public static void main(String[] args) {
        int sum=0,i=1;

        while(i<=100){
            sum+=i;
            if(sum>150){
                break;
            }
            i++;
        }
        System.out.println("i="+i);
        System.out.println("sum="+sum);

    }
}
